﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Map.ywxt.TenderBond
{
    using NHibernate;
    using NHibernate.Mapping.ByCode;
    using NHibernate.Mapping.ByCode.Conformist;

    using DB_NH.DB_Model.ywxt.TenderBond;
    public class Map_Sub_Account : ClassMapping<Sub_Account>
    {
        public Map_Sub_Account()
        {
            //映射ID
            Id(x => x.Id, map => map.Length(100));


            Property(x => x.Project_ID, map => map.Length(100));
            Property(x => x.TransCode, map => map.Length(100));
            Property(x => x.TransDate);
            Property(x => x.TransTime);
            Property(x => x.SeqNo, map => map.Length(100));
            Property(x => x.ZoneName, map => map.Length(100));
            Property(x => x.AcctNo, map => map.Length(100));
            Property(x => x.BiaoDuanNo, map => map.Length(100));
            Property(x => x.OpenDate);
            Property(x => x.OpenTime);
            Property(x => x.BZJEndDate);
            Property(x => x.BZJEndTime);
            Property(x => x.BaseAcctNo, map => map.Length(100));
            Property(x => x.BaseAcctName, map => map.Length(100));
            Property(x => x.IsRetire);
            Property(x => x.BZJAheadView);
            Property(x => x.MatuDay, map => map.Length(100));
            Property(x => x.Bak1, map => map.Length(100));

            Property(x => x.Result);
            Property(x => x.TransRltMsg, map => map.Length(100));
            Property(x => x.IAcctNo, map => map.Length(100));
            Property(x => x.AuthCode, map => map.Length(100));



            Property(x => x.is_valid);
            Property(x => x.create_date);

            Table("sub_account");

            //不进行创建
            //SchemaAction(NHibernate.Mapping.ByCode.SchemaAction.Non e);
        }
    }
}
